window.rootPath = (function (src) {
	src = document.currentScript
		? document.currentScript.src
		: document.scripts[document.scripts.length - 1].src;
	return src.substring(0, src.lastIndexOf("/") + 1);
})();

layui.config({
	base: rootPath + "module/",
	version: "3.9.9"
}).extend({
	admin: "admin"
}).use(['layer', 'theme'], function () {
	layui.theme.changeTheme(window, false);
});